package org.devgframwork.flowsystem.api.admin.activity.entity;

import io.searchbox.annotations.JestId;
import lombok.Getter;
import lombok.Setter;
import org.devgframwork.es5.elasticserach.EsCloumn;

import java.io.Serializable;


/**
 * 商品活动对象
 */

@Setter
@Getter
public class MerchandiseActivity implements Serializable {

    @JestId
    @EsCloumn(name = "es_id")
    private String esId;

    @EsCloumn(name = "es_type")
    private String esType;

    @EsCloumn(name = "activity_id")
    private String activityId; // 活动ID

    @EsCloumn(name = "activity_name")
    private String activityName; // 活动名称

    @EsCloumn(name = "start_time", dateformat = "YYYY-MM-dd HH:mm:ss")
    private String startTime; // 活动开始时间

    @EsCloumn(name = "end_time", dateformat = "YYYY-MM-dd HH:mm:ss")
    private String endTime; // 活动结束时间

    @EsCloumn(name = "activity_store_no")
    private String storeNo; // 店铺编号

    @EsCloumn(name = "store_prod_no")
    private String storeProdNo; // 店铺商品编码

    @EsCloumn(name = "merchandise_label_id")
    private String merchandiseLabelId;// 商品标签

    @EsCloumn(name = "merchandise_rule_type")
    private String merchandiseRuleType; // 商品规则类型(M=商品编号 / L=商品标签)

    @EsCloumn(name = "merchandise_black_white")
    private String merchandiseBlackWhite; // 商品黑白名单(W=白名单 / B=黑名单)

    @EsCloumn(name = "cust_id")
    private Long custId; // 客户ID

    @EsCloumn(name = "cust_area_code")
    private String custAreaCode; // 客户区域

    @EsCloumn(name = "cust_type_id")
    private String custTypeId; // 客户类型

    @EsCloumn(name = "cust_label_id")
    private String custLabelId; // 客户标签

    @EsCloumn(name = "cust_rule_type")
    private String custRuleType; // 客户规则类型(C=客户单位 / A=客户区域 / T=客户类型 / B=标签)

    @EsCloumn(name = "cust_black_white")
    private String custBlackWhite; // 客户黑白名单(W=白名单 / B=黑名单)

    @EsCloumn(name = "be_active")
    private String beActive; // 激活状态(Y=正常 / P=暂停 / T=强关 / D=删除)
}
